package dao

import "gorm.io/gorm"

type Shop struct {
	gorm.Model
	ShopName       string  `json:"shopName" gorm:"type:varchar(80);not null;comment:'店铺名称'"`
	ShopAddress    string  `json:"shopAddress" gorm:"type:varchar(200);not null;comment:'店铺地址'"`
	ShopImage      string  `json:"shopImage" gorm:"type:text;comment:'店铺封面'"`
	ShopType       int     `json:"shopType" gorm:"type:tinyint(1);comment:'1-自营2-连锁'"`
	ShopMessage    string  `json:"shopMessage" gorm:"type:varchar(255);comment:'店铺简介'"`
	ShopMain       string  `json:"shopMain" gorm:"type:varchar(20);not null;comment:'店铺主营'"`
	PeopleBuyPrice float64 `json:"peopleBuyPrice" gorm:"type:decimal(10,2);comment:'人均消费'"`
	StartingBuy    float64 `json:"startingBuy" gorm:"decimal(10,2);comment:'起送价'"`
	ShopPaper      string  `json:"shopPaper" gorm:"type:varchar(30);comment:'商家优惠卷'"`
	ShopMath       string  `json:"shopMath" gorm:"type:varchar(30);comment:'店铺评分'"`
	ShopClassId    int     `json:"shopClassId" gorm:"type:int(10);comment:'分类编号'"`
}

func (Shop) TableName() string {
	return "shop"
}
